Optimal. Leaf size=97 \[ -\frac {3 (a+a \sec (c+d x))^{3+n}}{a^3 d (3+n)}-\frac {\, _2F_1(1,3+n;4+n;1+\sec (c+d x)) (a+a \sec (c+d x))^{3+n}}{a^3 d (3+n)}+\frac {(a+a \sec (c+d x))^{4+n}}{a^4 d (4+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3965, 90, 67}
\begin {gather*} \frac {(a \sec (c+d x)+a)^{n+4}}{a^4 d (n+4)}-\frac {(a \sec (c+d x)+a)^{n+3} \, _2F_1(1,n+3;n+4;\sec (c+d x)+1)}{a^3 d (n+3)}-\frac {3 (a \sec (c+d x)+a)^{n+3}}{a^3 d (n+3)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 90
Rule 3965
Rubi steps
\begin {align*} \int (a+a \sec (c+d x))^n \tan ^5(c+d x) \, dx &=\frac {\text {Subst}\left (\int \frac {(-a+a x)^2 (a+a x)^{2+n}}{x} \, dx,x,\sec (c+d x)\right )}{a^4 d}\\ &=\frac {\text {Subst}\left (\int \left (-3 a^2 (a+a x)^{2+n}+\frac {a^2 (a+a x)^{2+n}}{x}+a (a+a x)^{3+n}\right ) \, dx,x,\sec (c+d x)\right )}{a^4 d}\\ &=-\frac {3 (a+a \sec (c+d x))^{3+n}}{a^3 d (3+n)}+\frac {(a+a \sec (c+d x))^{4+n}}{a^4 d (4+n)}+\frac {\text {Subst}\left (\int \frac {(a+a x)^{2+n}}{x} \, dx,x,\sec (c+d x)\right )}{a^2 d}\\ &=-\frac {3 (a+a \sec (c+d x))^{3+n}}{a^3 d (3+n)}-\frac {\, _2F_1(1,3+n;4+n;1+\sec (c+d x)) (a+a \sec (c+d x))^{3+n}}{a^3 d (3+n)}+\frac {(a+a \sec (c+d x))^{4+n}}{a^4 d (4+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 72, normalized size = 0.74 \begin {gather*} \frac {(1+\sec (c+d x))^3 (a (1+\sec (c+d x)))^n (-9-2 n-(4+n) \, _2F_1(1,3+n;4+n;1+\sec (c+d x))+(3+n) \sec (c+d x))}{d (3+n) (4+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.11, size = 0, normalized size = 0.00 \[\int \left (a +a \sec \left (d x +c \right )\right )^{n} \left (\tan ^{5}\left (d x +c \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{n} \tan ^{5}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {tan}\left (c+d\,x\right )}^5\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________